
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;



public class TestDate {

	public static void main(String[] args) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			//Date d = sdf.parse(sdf.format(new Date()));
			Date d = new Date();
			Timestamp t = new Timestamp(d.getTime());
			System.out.println(t);
		

	}
}
